﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
     class Animal
    {
        public string name;

        public Animal(string name)
        {
            this.name = name;
        }
        public Animal() { }
        public string Name { get => name; set => name = value; }
        public void Output() 
        {
            Console.WriteLine("动物名称:{0}",this.name);
        }
    }
}
